<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@ include file="/common/meta.jsp" %>
    <%@ include file="/common/public.jsp" %>
    <script type="text/javascript" src="${ctx}/js/dwz/dwz.core.js"></script>
    <script type="text/javascript" src="${ctx}/js/dwz/dwz.tree.js"></script>
    <script type="text/javascript" src="${ctx}/js/dwz/dwz.accordion.js"></script>
    <link rel="stylesheet" href="${ctx}/css/dwz/style.css" type="text/css"/>
    <link rel="stylesheet" href="${ctx}/css/dwz/core.css" type="text/css"/>
    <title>left</title>
    <script>
    $(function () {
        $("#accordion").accordion();

        var $p = $(document);

        $("ul.tree", $p).jTree();
        $('div.accordion', $p).each(function () {
            var $this = $(this);
            $this.accordion({fillSpace:$this.attr("fillSpace"), alwaysOpen:false, active:0});
        });

    });
    </script>
</head>
<body>
<div id="leftside">
    <div id="sidebar_s">
        <div class="collapse">
            <div class="toggleCollapse">
                <div></div>
            </div>
        </div>
    </div>
    <div id="sidebar">
        <div class="toggleCollapse">
            <h2>主菜单</h2>
        </div>
        <div class="accordion" fillSpace="sidebar">
            <security:authorize ifAnyGranted="AUTH_MANAGER,AUTH_ALL">
                <div class="accordionHeader">
                    <h2><span>Folder</span>实时监控</h2>
                </div>
                <div class="accordionContent">
                    <ul class="tree treeFolder">
                        <li><a href="../admin/zk/zk.action" target="manFrame" rel="main">Zookpeer管理</a></li>
                    </ul>
                </div>
            </security:authorize>
            <security:authorize ifAnyGranted="AUTH_MANAGER,AUTH_ALL">
                <div class="accordionHeader">
                    <h2><span>Folder</span>直播管理</h2>
                </div>
                <div class="accordionContent">
                    <ul class="tree treeFolder">
                        <li><a href="../channel/channel/channel.action" target="manFrame" rel="main" external="true">频道列表</a></li>
                        <!-- <li><a href="../search/search/channelInfo.action" target="manFrame" rel="main" external="true">频道查询</a></li>
                        <li><a href="../reservation/reservation/reservation.action" target="manFrame" rel="main" external="true">预约上下线</a></li> -->
                    </ul>
                </div>
            </security:authorize>
            <security:authorize ifAnyGranted="AUTH_MANAGER,AUTH_ALL">
            <div class="accordionHeader">
                <h2><span>Folder</span>权限管理</h2>
            </div>
            <div class="accordionContent">
                <ul class="tree treeFolder">
                    <li><a href="../auth/user/user.action" target="manFrame" rel="main" external="true">用户管理</a></li>
                    <li><a href="../auth/role/role.action" target="manFrame" rel="main" external="true">角色管理</a></li>
                    <li><a href="../auth/resource/resource.action" target="manFrame" rel="main" external="true">资源管理</a></li>
                    <li><a href="../auth/authority/authority.action" target="manFrame" rel="main" external="true">授权管理</a></li>
                </ul>
            </div>
            </security:authorize>
        </div>
    </div>
</div>
</body>
</html>
